package game.controller.unit
{
	import game.constants.ApplicationNotification;
	import game.constants.globalVar.notif.GlobalVarNotification;
	import game.model.globalVar.GlobalVarProxy;
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	/**
	 * ...
	 * @author Thot
	 */
	
	public class GlobalVarCommand extends SimpleCommand
	{
		override public function execute( notification:INotification ):void
		{
			var proxy:GlobalVarProxy = facade.retrieveProxy(GlobalVarProxy.NAME) as GlobalVarProxy;
			var notif:GlobalVarNotification = new GlobalVarNotification("gold",1000);
			
			sendNotification(ApplicationNotification.SET_GLOBAL_VAR, notif );
		}
	}
}